package oop.main;

public class Main {

	public static void main(String[] args) {
		
		int n = 10;
		
		System.out.print("The Fibonacci of " + n + " is "+fibonacci(n));
		
	}
	
	
	public static int fibonacci(int n)
	{
		if(n<1)
		{
			System.out.println("You can not enter a number less then 1!");
			return -1;
		}else if(n<=2)
		{
			return 1;
		}else
		{
			return fibonacci(n - 1) + fibonacci(n - 2);
		}
	}

}
